﻿
namespace OperationPlugins.Models
{
    internal sealed class SetPropertyValueEnvelope
    {
        /// <summary>
        /// Initializes a new instance of the SetPropertyValueEnvelope class.
        /// </summary>
        /// <param name="model">The model object.</param>
        /// <param name="newValue">The new value of the property that changed.</param>
        /// <param name="oldValue">The old value of the property that changed.</param>
        internal SetPropertyValueEnvelope(object model, PropertyValue newValue, PropertyValue oldValue)
        {
            Model = model;
            NewValue = newValue;
            OldValue = oldValue;
        }

        /// <summary>
        /// Gets the model object.
        /// </summary>
        internal object Model { private set; get; }

        /// <summary>
        /// Gets the new value of the property that changed.
        /// </summary>
        internal PropertyValue NewValue { private set; get; }

        /// <summary>
        /// Gets the old value of the property that changed.
        /// </summary>
        internal PropertyValue OldValue { private set; get; }
    }
}
